package _11_LianXi;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Copy {

	public static void main(String[] args) {
		try (FileInputStream fis = new FileInputStream("./src/_11_LianXi/a.rar");
				FileOutputStream fos = new FileOutputStream("./src/_11_LianXi/b.rar");) {
			// 读取数据
			byte[] bytes = new byte[102400];
			int tmp = 0;
			while ((tmp = fis.read(bytes)) != -1) {
				// 存储数据
				fos.write(bytes, 0, tmp);
			}
			fos.flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
